﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ReligionsInLocalitiesEdit.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.OpenPersonality.ReligionsInLocalitiesEdit" %>
<owc:OwDetailsView ID="ReligionsInLocalitiesGrid" runat="server" DataSourceID="ReligionsInLocalitiesOds"
    DataKeyNames="ReligionsInLocalitiesID" AutoGenerateRows="false">
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>
                <fieldset>
                    <legend>
                        <asp:Localize ID="Localize2" Text="<%$ OwR:GeneralInfo %>" runat="server"></asp:Localize>
                    </legend>
                    <owac:OwDetailCommonGroup ID="OwDetailCommonGroup1" runat="server" OwBindContinentLocalityValue='<%# Bind("ContinentID") %>'
                        OwBindCountryLocalityValue='<%# Bind("CountryID") %>' OwBindDistrictLocalityValue='<%# Bind("DistrictID") %>'
                        OwBindProvinceLocalityValue='<%# Bind("ProvinceID") %>' OwBindWardLocalityValue='<%# Bind("WardID") %>'  OwAuthorVisible="false" OwSourceVisible="false" OwCategoryVisible="false" />
                </fieldset>
                <fieldset>
                    <legend><span>
                        <asp:Localize ID="Localize7" Text="<%$ OwR:InfoLabel %>" runat="server"></asp:Localize>
                    </span></legend>
                    <table>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="Religion" />
                            </td>
                            <td>
                                <owc:OwObjectDataSource ID="ReligionsOds" runat="server" OldValuesParameterFormatString="original_{0}"
                                    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwReligionsBLL">
                                    <SelectParameters>
                                        <asp:Parameter Name="parentID" Type="Int64" />
                                        <asp:Parameter Name="languageCode" Type="String" />
                                        <asp:Parameter Name="sortClause" Type="String" />
                                        <asp:Parameter Name="sortDirection" Type="String" />
                                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                                        <asp:Parameter Name="maximumRows" Type="Int32" />
                                    </SelectParameters>
                                </owc:OwObjectDataSource>
                                <owc:OwComboBox runat="server" ID="ReligionsCbb" DataSourceID="ReligionsOds" SkinID="OwComboBox"
                                    DataTextField="Name" DataValueField="ReligionID" SelectedValue='<%# Bind("ReligionID") %>' EmptyMessage="<%$ OwR:ReligionSelect %>">
                                </owc:OwComboBox>
                               <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="<%$ OwR:ReligionNotEmpty %>" Text="*" SetFocusOnError="true" Display="Dynamic" ControlToValidate="ReligionsCbb" />


                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="Member" />
                            </td>
                            <td>
                                <owc:OwTextBox ID="MemberTxt" runat="server" Text='<%# Bind("Members") %>'   SkinID="" Width="196" />
                               <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="<%$ OwR:MemberNotEmpty %>" Text="*" SetFocusOnError="true" Display="Dynamic" ControlToValidate="MemberTxt" />

                            </td>
                        </tr>
                    </table>
                </fieldset>
               
              
            </InsertItemTemplate>
            <EditItemTemplate>
              <fieldset>
                    <legend>
                        <asp:Localize ID="Localize2" Text="<%$ OwR:GeneralInfo %>" runat="server"></asp:Localize>
                    </legend>
                   <owac:OwDetailCommonGroup ID="OwDetailCommonGroup1" runat="server" OwBindContinentLocalityValue='<%# Bind("ContinentID") %>'
                        OwBindCountryLocalityValue='<%# Bind("CountryID") %>' OwBindDistrictLocalityValue='<%# Bind("DistrictID") %>'
                        OwBindProvinceLocalityValue='<%# Bind("ProvinceID") %>' OwBindWardLocalityValue='<%# Bind("WardID") %>'  OwAuthorVisible="false" OwSourceVisible="false" OwCategoryVisible="false" />
              
                </fieldset>
                <fieldset>
                    <legend><span>
                        <asp:Localize ID="Localize7" Text="<%$ OwR:InfoLabel %>" runat="server"></asp:Localize>
                    </span></legend>
                    <table>
                        <tr>
                            <td>
                                <owc:OwR runat="server" OwText="ReligionID" />
                            </td>
                            <td>
                                <owc:OwObjectDataSource ID="ReligionsOds" runat="server" OldValuesParameterFormatString="original_{0}"
                                    SelectMethod="OwGetByDynamic" TypeName="Micronet.OpenWeb.Com.BLL.OwReligionsBLL">
                                    <SelectParameters>
                                        <asp:Parameter Name="parentID" Type="Int64" />
                                        <asp:Parameter Name="languageCode" Type="String" />
                                        <asp:Parameter Name="sortClause" Type="String" />
                                        <asp:Parameter Name="sortDirection" Type="String" />
                                        <asp:Parameter Name="startRowIndex" Type="Int32" />
                                        <asp:Parameter Name="maximumRows" Type="Int32" />
                                    </SelectParameters>
                                </owc:OwObjectDataSource>
                                <owc:OwComboBox runat="server" ID="ReligionsCbb" DataSourceID="ReligionsOds" SkinID="OwComboBox"
                                    DataTextField="Name" DataValueField="ReligionID" SelectedValue='<%# Bind("ReligionID") %>'>
                                </owc:OwComboBox>
                               <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="<%$ OwR:ReligionNotEmpty %>" Text="*" SetFocusOnError="true" Display="Dynamic" ControlToValidate="ReligionsCbb" />

                            </td>
                        </tr>
                        <tr>
                            <td>
                                <owc:OwR  runat="server" OwText="Member" />
                            </td>
                            <td>
                                <owc:OwTextBox ID="MemberTxt" runat="server" Text='<%# Bind("Members") %>'  SkinID="" Width="196" />
                               <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="<%$ OwR:MemberNotEmpty %>" Text="*" SetFocusOnError="true" Display="Dynamic" ControlToValidate="MemberTxt" />

                            </td>
                        </tr>
                    </table>
                </fieldset>

            </EditItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    </owc:OwButton>
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>' OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:OwDetailsView>
<owc:OwObjectDataSource ID="ReligionsInLocalitiesOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwReligionsInLocalitiesEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetEntity" TypeName="Micronet.OpenWeb.Com.BLL.OwReligionsInLocalitiesBLL"
    UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:QueryStringParameter Name="religionsInLocalitiesID" QueryStringField="Id" Type="Int64" />
    </SelectParameters>
</owc:OwObjectDataSource>
